package cn.com.fattiger.framework;

public class Singleton {
	private static volatile Singleton instance = null;
	private Singleton(){}
	
	public static Singleton getSingleton(){
		if(instance == null){
			synchronized(Singleton.class){
				if(instance == null){
					instance = new Singleton();
				}
			}
		}
		return instance;
	}
	
	public static void main(String[] args){
		int uid = 1998;
		System.out.println((uid/10)%4+1);
		System.out.println((uid/10)%8+1);
	}
}
